Optimal. Leaf size=168 \[ -\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {\sin (c+d x)}{d \sqrt {\sec (c+d x)} \sqrt {a \cos (c+d x)+a}}+\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.39, antiderivative size = 168, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {4222, 2778, 2982, 2782, 205, 2774, 216} \[ -\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {\sin (c+d x)}{d \sqrt {\sec (c+d x)} \sqrt {a \cos (c+d x)+a}}+\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a \cos (c+d x)+a}}\right )}{\sqrt {a} d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 216
Rule 2774
Rule 2778
Rule 2782
Rule 2982
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+a \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x)} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\cos ^{\frac {3}{2}}(c+d x)}{\sqrt {a+a \cos (c+d x)}} \, dx\\ &=\frac {\sin (c+d x)}{d \sqrt {a+a \cos (c+d x)} \sqrt {\sec (c+d x)}}-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {-a+a \cos (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx}{2 a}\\ &=\frac {\sin (c+d x)}{d \sqrt {a+a \cos (c+d x)} \sqrt {\sec (c+d x)}}+\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}} \, dx-\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx}{2 a}\\ &=\frac {\sin (c+d x)}{d \sqrt {a+a \cos (c+d x)} \sqrt {\sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right )}{a d}-\frac {\left (2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a^2+a x^2} \, dx,x,-\frac {a \sin (c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right )}{d}\\ &=-\frac {\sin ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sqrt {2} \tan ^{-1}\left (\frac {\sqrt {a} \sin (c+d x)}{\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {a+a \cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sin (c+d x)}{d \sqrt {a+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.45, size = 259, normalized size = 1.54 \[ \frac {i e^{-2 i (c+d x)} \left (1+e^{i (c+d x)}\right ) \sqrt {\sec (c+d x)} \left (-e^{i (c+d x)}+e^{2 i (c+d x)}-e^{3 i (c+d x)}+e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \sinh ^{-1}\left (e^{i (c+d x)}\right )+2 \sqrt {2} e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\frac {1-e^{i (c+d x)}}{\sqrt {2} \sqrt {1+e^{2 i (c+d x)}}}\right )-e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )+1\right )}{4 d \sqrt {a (\cos (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.94, size = 143, normalized size = 0.85 \[ \frac {\sqrt {a} {\left (\cos \left (d x + c\right ) + 1\right )} \arctan \left (\frac {\sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right ) - \frac {\sqrt {2} {\left (a \cos \left (d x + c\right ) + a\right )} \arctan \left (\frac {\sqrt {2} \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}}{\sqrt {a} \sin \left (d x + c\right )}\right )}{\sqrt {a}} + \sqrt {a \cos \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a d \cos \left (d x + c\right ) + a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \cos \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 167, normalized size = 0.99 \[ \frac {\sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \cos \left (d x +c \right ) \left (-1+\cos \left (d x +c \right )\right )^{3} \left (-\sqrt {2}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+\sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )+2 \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right )\right ) \sqrt {2}}{2 d \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )^{6} a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \cos \left (d x + c\right ) + a} \sec \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\sqrt {a+a\,\cos \left (c+d\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________